<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <h1>
        <%=name%>
    </h1>
    <p><span>3</span>秒后跳转到列表页</p>

    <script>
        let span = document.querySelector('span')
        let time = 3

        setInterval(() => {
            time--
            span.innerHTML = time

        }, 1000)
        setInterval(() => {
            window.location.href = '/list'
        }, 3000)
    </script>
</body>

</html>